package com.ylsd.dynamic.mapper;

import com.ylsd.dynamic.entity.DynamicCatalogin;
import com.ylsd.dynamic.entity.DynamicList;
import com.ylsd.dynamic.entity.School;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DynamicMapper {
    List<DynamicCatalogin> findByPage(DynamicCatalogin dynamicCatalogin);

    boolean insertDC(DynamicCatalogin dynamicCatalogin);

    boolean delDC(List<Integer> id);

    boolean updatetDC(DynamicCatalogin dynamicCatalogin);

    List<DynamicList> findDLByPage(DynamicList dynamicList);

    boolean insertDL(DynamicList dynamicList);

    void updateByDynamicNum(Integer dcId);

    boolean updateDL(DynamicList dynamicList);

    boolean delDL(List<Integer> id);

    Integer findDCId(Integer id);

    void delDynamicNum(Integer id);

    List<School> choiceSchool();

    List<DynamicCatalogin> search(Integer id);

    Integer findByDynamicId(String systematicName);

    void insertDynamicIdAndCampusId(@Param("schoolId") Integer schoolId, @Param("dynamicId") Integer dynamicId);

    List<DynamicCatalogin> choiceDynamic();

    String findImgById();
}
